using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyBoom : MonoBehaviour
{
    void Start()
    {
    }
    void Update()
    {
        
    }

    public void AnimationPlayEnd() {
        Destroy(gameObject);
    }

    void OnTriggerEnter2D(Collider2D other)
    {
        if(other.gameObject.TryGetComponent(out Damageable damageable)){
            damageable.Damage(gameObject,1);
        }
    }
}
